package com.neo.design.chain.payment;

import com.neo.design.chain.ChainRequest;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

/**
 * 付款业务请求参数<p/>
 * 这里只是示例代码，根据具体的业务需求，添加具体的请求参数
 *
 * @see com.neo.design.chain.ChainRequest
 * @author kevin
 *
 */
@Data
public class PaymentRequest implements ChainRequest, Serializable {

    private Integer type;


    @Getter
    public enum PaymentType {
        WECHAT(1),
        ALIPAY(2),
        UNION_PAY(3),
        CASH(4);

        final int code;

        PaymentType(Integer code) {
            this.code = code;
        }
    }
}
